﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Threading;

namespace CWB.Common.Utilities
{
    public class EnumMapping
    {
        public static string getStatus(int status)
        {
            string key = string.Format("AgentStatus{0}", status);
            return resource(key); ;
        }

        public static string getPosition(int position)
        {
            string key = string.Format("AgentPosition{0}", position);
            return resource(key); ;
        }

        private static string resource(string key)
        {
            return (string)HttpContext.GetGlobalResourceObject("Text", key, Thread.CurrentThread.CurrentUICulture);
        }

    }
}
